﻿using J.StatusRepository.Impl;
using J.StatusRepository.Interface;
using Microsoft.EntityFrameworkCore.Infrastructure;
using StatusService;

namespace J.Status.Extensions
{
    public static class Extension
    {
        /// <summary>
        /// 注入读的服务和仓储
        /// </summary>
        /// <param name="ServicesAssess"></param>
        public static void AssessGet(this IServiceCollection Services)
        {
            //仓储注入
            //Services.AddScoped<ITargetModelRepository, TargetModelRepository>();

            //房号管理
            Services.AddScoped<IRoomNumManageRepository,RoomNumManageRepository>();
            Services.AddScoped<IRoomNumManageService, RoomNumManageService>();
            Services.AddScoped<IBookingService, BookingService>();
            Services.AddScoped<IBookingRepository, BookingRepository>();
            Services.AddScoped<IBookingRoomRepository, BookingRoomRepository>();
            Services.AddScoped<IOrdersRepository, OrdersRepository>();
            Services.AddScoped<IStayRepository, StayRepository>();
            Services.AddScoped<IRoomTypeRepository, RoomTypeRepository>();
            Services.AddScoped<IRoomTypeService, RoomTypeService>();
            //住宿记录
            Services.AddScoped<ILodgingRepository, LodgingRepository>();
            Services.AddScoped<ILodgingDtoService, LodgingDtoService>();
            //保留
            Services.AddScoped<IReserveRepository, ReserveRepository>();
            //结算
            Services.AddScoped<ISettlementRepository, SettlementRepository>();
        }
    }
}
